var http = require('http');

http.createServer(function (req, res) {  //create a server object:
    res.write('Hello World!'); //write a response to the client
    res.end(); //end the response
}).listen(8080); //the server object listens on port 8080
